import axios from './request'
import conf from './apiConf'
// 例子
export const getnewslist = params => {
  return axios.get(conf.getnewslist, params)
}
export const postCart = obj => {
  return axios.post(conf.addShopingCart, obj)
}
export const updataShopingCart = obj => {
  return axios.post(conf.updataShopingCart, obj)
}
export const GetShopingCart = id => {
  return axios.get(conf.GetShopingCart + id)
}
export const deleteShopingCart = id => {
  return axios.get(conf.deleteShopingCart + id)
}
